home *** CD-ROM | disk | FTP | other *** search
/ Visual Basic Source Code / Visual Basic Source Code.iso / vbsource / nocrunch / nocrunch.frm (.txt) < prev    next >
Encoding:
Visual Basic Form  |  1995-09-06  |  32.7 KB  |  1,113 lines

  1. VERSION 2.00
  2. Begin Form NumCrunch 
  3.    BackColor       =   &H00FFFFFF&
  4.    Caption         =   "Number Crunch"
  5.    ClientHeight    =   5010
  6.    ClientLeft      =   405
  7.    ClientTop       =   1425
  8.    ClientWidth     =   8910
  9.    ForeColor       =   &H00000000&
  10.    Height          =   5700
  11.    Icon            =   NOCRUNCH.FRX:0000
  12.    Left            =   345
  13.    LinkMode        =   1  'Source
  14.    LinkTopic       =   "Form1"
  15.    ScaleHeight     =   5010
  16.    ScaleWidth      =   8910
  17.    Top             =   795
  18.    Width           =   9030
  19.    Begin Timer Timer1 
  20.       Enabled         =   0   'False
  21.       Interval        =   1000
  22.       Left            =   480
  23.       Top             =   2880
  24.    End
  25.    Begin CommandButton Command1 
  26.       Caption         =   "Start Timer"
  27.       Height          =   615
  28.       Left            =   6720
  29.       TabIndex        =   42
  30.       Top             =   2160
  31.       Width           =   2055
  32.    End
  33.    Begin Label Label1 
  34.       Alignment       =   2  'Center
  35.       BackColor       =   &H00FF0000&
  36.       BorderStyle     =   1  'Fixed Single
  37.       FontBold        =   -1  'True
  38.       FontItalic      =   0   'False
  39.       FontName        =   "Times New Roman"
  40.       FontSize        =   24
  41.       FontStrikethru  =   0   'False
  42.       FontUnderline   =   0   'False
  43.       ForeColor       =   &H00FFFFFF&
  44.       Height          =   615
  45.       Index           =   20
  46.       Left            =   7920
  47.       TabIndex        =   39
  48.       Top             =   4080
  49.       Width           =   735
  50.    End
  51.    Begin Label Label1 
  52.       Alignment       =   2  'Center
  53.       BackColor       =   &H00FF0000&
  54.       BorderStyle     =   1  'Fixed Single
  55.       FontBold        =   -1  'True
  56.       FontItalic      =   0   'False
  57.       FontName        =   "Times New Roman"
  58.       FontSize        =   24
  59.       FontStrikethru  =   0   'False
  60.       FontUnderline   =   0   'False
  61.       ForeColor       =   &H00FFFFFF&
  62.       Height          =   615
  63.       Index           =   19
  64.       Left            =   7080
  65.       TabIndex        =   38
  66.       Top             =   4080
  67.       Width           =   735
  68.    End
  69.    Begin Label Label1 
  70.       Alignment       =   2  'Center
  71.       BackColor       =   &H00FF0000&
  72.       BorderStyle     =   1  'Fixed Single
  73.       FontBold        =   -1  'True
  74.       FontItalic      =   0   'False
  75.       FontName        =   "Times New Roman"
  76.       FontSize        =   24
  77.       FontStrikethru  =   0   'False
  78.       FontUnderline   =   0   'False
  79.       ForeColor       =   &H00FFFFFF&
  80.       Height          =   615
  81.       Index           =   18
  82.       Left            =   6240
  83.       TabIndex        =   37
  84.       Top             =   4080
  85.       Width           =   735
  86.    End
  87.    Begin Label Label1 
  88.       Alignment       =   2  'Center
  89.       BackColor       =   &H00FF0000&
  90.       BorderStyle     =   1  'Fixed Single
  91.       FontBold        =   -1  'True
  92.       FontItalic      =   0   'False
  93.       FontName        =   "Times New Roman"
  94.       FontSize        =   24
  95.       FontStrikethru  =   0   'False
  96.       FontUnderline   =   0   'False
  97.       ForeColor       =   &H00FFFFFF&
  98.       Height          =   615
  99.       Index           =   17
  100.       Left            =   5400
  101.       TabIndex        =   36
  102.       Top             =   4080
  103.       Width           =   735
  104.    End
  105.    Begin Label Label1 
  106.       Alignment       =   2  'Center
  107.       BackColor       =   &H00FF0000&
  108.       BorderStyle     =   1  'Fixed Single
  109.       FontBold        =   -1  'True
  110.       FontItalic      =   0   'False
  111.       FontName        =   "Times New Roman"
  112.       FontSize        =   24
  113.       FontStrikethru  =   0   'False
  114.       FontUnderline   =   0   'False
  115.       ForeColor       =   &H00FFFFFF&
  116.       Height          =   615
  117.       Index           =   16
  118.       Left            =   4560
  119.       TabIndex        =   35
  120.       Top             =   4080
  121.       Width           =   735
  122.    End
  123.    Begin Label Label1 
  124.       Alignment       =   2  'Center
  125.       BackColor       =   &H00FF0000&
  126.       BorderStyle     =   1  'Fixed Single
  127.       FontBold        =   -1  'True
  128.       FontItalic      =   0   'False
  129.       FontName        =   "Times New Roman"
  130.       FontSize        =   24
  131.       FontStrikethru  =   0   'False
  132.       FontUnderline   =   0   'False
  133.       ForeColor       =   &H00FFFFFF&
  134.       Height          =   615
  135.       Index           =   15
  136.       Left            =   3720
  137.       TabIndex        =   34
  138.       Top             =   4080
  139.       Width           =   735
  140.    End
  141.    Begin Label Label1 
  142.       Alignment       =   2  'Center
  143.       BackColor       =   &H00FF0000&
  144.       BorderStyle     =   1  'Fixed Single
  145.       FontBold        =   -1  'True
  146.       FontItalic      =   0   'False
  147.       FontName        =   "Times New Roman"
  148.       FontSize        =   24
  149.       FontStrikethru  =   0   'False
  150.       FontUnderline   =   0   'False
  151.       ForeColor       =   &H00FFFFFF&
  152.       Height          =   615
  153.       Index           =   14
  154.       Left            =   2880
  155.       TabIndex        =   33
  156.       Top             =   4080
  157.       Width           =   735
  158.    End
  159.    Begin Label Label1 
  160.       Alignment       =   2  'Center
  161.       BackColor       =   &H00FF0000&
  162.       BorderStyle     =   1  'Fixed Single
  163.       FontBold        =   -1  'True
  164.       FontItalic      =   0   'False
  165.       FontName        =   "Times New Roman"
  166.       FontSize        =   24
  167.       FontStrikethru  =   0   'False
  168.       FontUnderline   =   0   'False
  169.       ForeColor       =   &H00FFFFFF&
  170.       Height          =   615
  171.       Index           =   13
  172.       Left            =   2040
  173.       TabIndex        =   32
  174.       Top             =   4080
  175.       Width           =   735
  176.    End
  177.    Begin Label Label1 
  178.       Alignment       =   2  'Center
  179.       BackColor       =   &H00FF0000&
  180.       BorderStyle     =   1  'Fixed Single
  181.       FontBold        =   -1  'True
  182.       FontItalic      =   0   'False
  183.       FontName        =   "Times New Roman"
  184.       FontSize        =   24
  185.       FontStrikethru  =   0   'False
  186.       FontUnderline   =   0   'False
  187.       ForeColor       =   &H00FFFFFF&
  188.       Height          =   615
  189.       Index           =   12
  190.       Left            =   1200
  191.       TabIndex        =   31
  192.       Top             =   4080
  193.       Width           =   735
  194.    End
  195.    Begin Label Label1 
  196.       Alignment       =   2  'Center
  197.       BackColor       =   &H00FF0000&
  198.       BorderStyle     =   1  'Fixed Single
  199.       FontBold        =   -1  'True
  200.       FontItalic      =   0   'False
  201.       FontName        =   "Times New Roman"
  202.       FontSize        =   24
  203.       FontStrikethru  =   0   'False
  204.       FontUnderline   =   0   'False
  205.       ForeColor       =   &H00FFFFFF&
  206.       Height          =   615
  207.       Index           =   11
  208.       Left            =   360
  209.       TabIndex        =   30
  210.       Top             =   4080
  211.       Width           =   735
  212.    End
  213.    Begin Label Label1 
  214.       Alignment       =   2  'Center
  215.       BackColor       =   &H00FF0000&
  216.       BorderStyle     =   1  'Fixed Single
  217.       FontBold        =   -1  'True
  218.       FontItalic      =   0   'False
  219.       FontName        =   "Times New Roman"
  220.       FontSize        =   24
  221.       FontStrikethru  =   0   'False
  222.       FontUnderline   =   0   'False
  223.       ForeColor       =   &H00FFFFFF&
  224.       Height          =   615
  225.       Index           =   10
  226.       Left            =   7920
  227.       TabIndex        =   29
  228.       Top             =   3360
  229.       Width           =   735
  230.    End
  231.    Begin Label Label1 
  232.       Alignment       =   2  'Center
  233.       BackColor       =   &H00FF0000&
  234.       BorderStyle     =   1  'Fixed Single
  235.       FontBold        =   -1  'True
  236.       FontItalic      =   0   'False
  237.       FontName        =   "Times New Roman"
  238.       FontSize        =   24
  239.       FontStrikethru  =   0   'False
  240.       FontUnderline   =   0   'False
  241.       ForeColor       =   &H00FFFFFF&
  242.       Height          =   615
  243.       Index           =   9
  244.       Left            =   7080
  245.       TabIndex        =   28
  246.       Top             =   3360
  247.       Width           =   735
  248.    End
  249.    Begin Label Label1 
  250.       Alignment       =   2  'Center
  251.       BackColor       =   &H00FF0000&
  252.       BorderStyle     =   1  'Fixed Single
  253.       FontBold        =   -1  'True
  254.       FontItalic      =   0   'False
  255.       FontName        =   "Times New Roman"
  256.       FontSize        =   24
  257.       FontStrikethru  =   0   'False
  258.       FontUnderline   =   0   'False
  259.       ForeColor       =   &H00FFFFFF&
  260.       Height          =   615
  261.       Index           =   8
  262.       Left            =   6240
  263.       TabIndex        =   27
  264.       Top             =   3360
  265.       Width           =   735
  266.    End
  267.    Begin Label Label1 
  268.       Alignment       =   2  'Center
  269.       BackColor       =   &H00FF0000&
  270.       BorderStyle     =   1  'Fixed Single
  271.       FontBold        =   -1  'True
  272.       FontItalic      =   0   'False
  273.       FontName        =   "Times New Roman"
  274.       FontSize        =   24
  275.       FontStrikethru  =   0   'False
  276.       FontUnderline   =   0   'False
  277.       ForeColor       =   &H00FFFFFF&
  278.       Height          =   615
  279.       Index           =   7
  280.       Left            =   5400
  281.       TabIndex        =   26
  282.       Top             =   3360
  283.       Width           =   735
  284.    End
  285.    Begin Label Label1 
  286.       Alignment       =   2  'Center
  287.       BackColor       =   &H00FF0000&
  288.       BorderStyle     =   1  'Fixed Single
  289.       FontBold        =   -1  'True
  290.       FontItalic      =   0   'False
  291.       FontName        =   "Times New Roman"
  292.       FontSize        =   24
  293.       FontStrikethru  =   0   'False
  294.       FontUnderline   =   0   'False
  295.       ForeColor       =   &H00FFFFFF&
  296.       Height          =   615
  297.       Index           =   6
  298.       Left            =   4560
  299.       TabIndex        =   25
  300.       Top             =   3360
  301.       Width           =   735
  302.    End
  303.    Begin Label Label1 
  304.       Alignment       =   2  'Center
  305.       BackColor       =   &H00FF0000&
  306.       BorderStyle     =   1  'Fixed Single
  307.       FontBold        =   -1  'True
  308.       FontItalic      =   0   'False
  309.       FontName        =   "Times New Roman"
  310.       FontSize        =   24
  311.       FontStrikethru  =   0   'False
  312.       FontUnderline   =   0   'False
  313.       ForeColor       =   &H00FFFFFF&
  314.       Height          =   615
  315.       Index           =   5
  316.       Left            =   3720
  317.       TabIndex        =   24
  318.       Top             =   3360
  319.       Width           =   735
  320.    End
  321.    Begin Label Label1 
  322.       Alignment       =   2  'Center
  323.       BackColor       =   &H00FF0000&
  324.       BorderStyle     =   1  'Fixed Single
  325.       FontBold        =   -1  'True
  326.       FontItalic      =   0   'False
  327.       FontName        =   "Times New Roman"
  328.       FontSize        =   24
  329.       FontStrikethru  =   0   'False
  330.       FontUnderline   =   0   'False
  331.       ForeColor       =   &H00FFFFFF&
  332.       Height          =   615
  333.       Index           =   4
  334.       Left            =   2880
  335.       TabIndex        =   23
  336.       Top             =   3360
  337.       Width           =   735
  338.    End
  339.    Begin Label Label1 
  340.       Alignment       =   2  'Center
  341.       BackColor       =   &H00FF0000&
  342.       BorderStyle     =   1  'Fixed Single
  343.       FontBold        =   -1  'True
  344.       FontItalic      =   0   'False
  345.       FontName        =   "Times New Roman"
  346.       FontSize        =   24
  347.       FontStrikethru  =   0   'False
  348.       FontUnderline   =   0   'False
  349.       ForeColor       =   &H00FFFFFF&
  350.       Height          =   615
  351.       Index           =   3
  352.       Left            =   2040
  353.       TabIndex        =   22
  354.       Top             =   3360
  355.       Width           =   735
  356.    End
  357.    Begin Label Label1 
  358.       Alignment       =   2  'Center
  359.       BackColor       =   &H00FF0000&
  360.       BorderStyle     =   1  'Fixed Single
  361.       FontBold        =   -1  'True
  362.       FontItalic      =   0   'False
  363.       FontName        =   "Times New Roman"
  364.       FontSize        =   24
  365.       FontStrikethru  =   0   'False
  366.       FontUnderline   =   0   'False
  367.       ForeColor       =   &H00FFFFFF&
  368.       Height          =   615
  369.       Index           =   2
  370.       Left            =   1200
  371.       TabIndex        =   21
  372.       Top             =   3360
  373.       Width           =   735
  374.    End
  375.    Begin Label Label1 
  376.       Alignment       =   2  'Center
  377.       BackColor       =   &H00FF0000&
  378.       BorderStyle     =   1  'Fixed Single
  379.       FontBold        =   -1  'True
  380.       FontItalic      =   0   'False
  381.       FontName        =   "Times New Roman"
  382.       FontSize        =   24
  383.       FontStrikethru  =   0   'False
  384.       FontUnderline   =   0   'False
  385.       ForeColor       =   &H00FFFFFF&
  386.       Height          =   615
  387.       Index           =   1
  388.       Left            =   360
  389.       TabIndex        =   20
  390.       Top             =   3360
  391.       Width           =   735
  392.    End
  393.    Begin Label timebox 
  394.       Caption         =   "120"
  395.       FontBold        =   -1  'True
  396.       FontItalic      =   0   'False
  397.       FontName        =   "MS Sans Serif"
  398.       FontSize        =   18
  399.       FontStrikethru  =   0   'False
  400.       FontUnderline   =   0   'False
  401.       Height          =   495
  402.       Left            =   5520
  403.       TabIndex        =   41
  404.       Top             =   2280
  405.       Width           =   975
  406.    End
  407.    Begin Label Label2 
  408.       Caption         =   "Time Remaining (seconds):"
  409.       FontBold        =   -1  'True
  410.       FontItalic      =   0   'False
  411.       FontName        =   "MS Sans Serif"
  412.       FontSize        =   18
  413.       FontStrikethru  =   0   'False
  414.       FontUnderline   =   0   'False
  415.       Height          =   495
  416.       Left            =   240
  417.       TabIndex        =   40
  418.       Top             =   2280
  419.       Width           =   5055
  420.    End
  421.    Begin Label numbox 
  422.       Alignment       =   2  'Center
  423.       BorderStyle     =   1  'Fixed Single
  424.       Caption         =   "20"
  425.       FontBold        =   -1  'True
  426.       FontItalic      =   0   'False
  427.       FontName        =   "Arial"
  428.       FontSize        =   24
  429.       FontStrikethru  =   0   'False
  430.       FontUnderline   =   0   'False
  431.       Height          =   615
  432.       Index           =   20
  433.       Left            =   7920
  434.       TabIndex        =   19
  435.       Top             =   1080
  436.       Width           =   735
  437.    End
  438.    Begin Label numbox 
  439.       Alignment       =   2  'Center
  440.       BorderStyle     =   1  'Fixed Single
  441.       Caption         =   "19"
  442.       FontBold        =   -1  'True
  443.       FontItalic      =   0   'False
  444.       FontName        =   "Arial"
  445.       FontSize        =   24
  446.       FontStrikethru  =   0   'False
  447.       FontUnderline   =   0   'False
  448.       Height          =   615
  449.       Index           =   19
  450.       Left            =   7080
  451.       TabIndex        =   18
  452.       Top             =   1080
  453.       Width           =   735
  454.    End
  455.    Begin Label numbox 
  456.       Alignment       =   2  'Center
  457.       BorderStyle     =   1  'Fixed Single
  458.       Caption         =   "18"
  459.       FontBold        =   -1  'True
  460.       FontItalic      =   0   'False
  461.       FontName        =   "Arial"
  462.       FontSize        =   24
  463.       FontStrikethru  =   0   'False
  464.       FontUnderline   =   0   'False
  465.       Height          =   615
  466.       Index           =   18
  467.       Left            =   6240
  468.       TabIndex        =   17
  469.       Top             =   1080
  470.       Width           =   735
  471.    End
  472.    Begin Label numbox 
  473.       Alignment       =   2  'Center
  474.       BorderStyle     =   1  'Fixed Single
  475.       Caption         =   "17"
  476.       FontBold        =   -1  'True
  477.       FontItalic      =   0   'False
  478.       FontName        =   "Arial"
  479.       FontSize        =   24
  480.       FontStrikethru  =   0   'False
  481.       FontUnderline   =   0   'False
  482.       Height          =   615
  483.       Index           =   17
  484.       Left            =   5400
  485.       TabIndex        =   16
  486.       Top             =   1080
  487.       Width           =   735
  488.    End
  489.    Begin Label numbox 
  490.       Alignment       =   2  'Center
  491.       BorderStyle     =   1  'Fixed Single
  492.       Caption         =   "16"
  493.       FontBold        =   -1  'True
  494.       FontItalic      =   0   'False
  495.       FontName        =   "Arial"
  496.       FontSize        =   24
  497.       FontStrikethru  =   0   'False
  498.       FontUnderline   =   0   'False
  499.       Height          =   615
  500.       Index           =   16
  501.       Left            =   4560
  502.       TabIndex        =   15
  503.       Top             =   1080
  504.       Width           =   735
  505.    End
  506.    Begin Label numbox 
  507.       Alignment       =   2  'Center
  508.       BorderStyle     =   1  'Fixed Single
  509.       Caption         =   "15"
  510.       FontBold        =   -1  'True
  511.       FontItalic      =   0   'False
  512.       FontName        =   "Arial"
  513.       FontSize        =   24
  514.       FontStrikethru  =   0   'False
  515.       FontUnderline   =   0   'False
  516.       Height          =   615
  517.       Index           =   15
  518.       Left            =   3720
  519.       TabIndex        =   14
  520.       Top             =   1080
  521.       Width           =   735
  522.    End
  523.    Begin Label numbox 
  524.       Alignment       =   2  'Center
  525.       BorderStyle     =   1  'Fixed Single
  526.       Caption         =   "14"
  527.       FontBold        =   -1  'True
  528.       FontItalic      =   0   'False
  529.       FontName        =   "Arial"
  530.       FontSize        =   24
  531.       FontStrikethru  =   0   'False
  532.       FontUnderline   =   0   'False
  533.       Height          =   615
  534.       Index           =   14
  535.       Left            =   2880
  536.       TabIndex        =   13
  537.       Top             =   1080
  538.       Width           =   735
  539.    End
  540.    Begin Label numbox 
  541.       Alignment       =   2  'Center
  542.       BorderStyle     =   1  'Fixed Single
  543.       Caption         =   "13"
  544.       FontBold        =   -1  'True
  545.       FontItalic      =   0   'False
  546.       FontName        =   "Arial"
  547.       FontSize        =   24
  548.       FontStrikethru  =   0   'False
  549.       FontUnderline   =   0   'False
  550.       Height          =   615
  551.       Index           =   13
  552.       Left            =   2040
  553.       TabIndex        =   12
  554.       Top             =   1080
  555.       Width           =   735
  556.    End
  557.    Begin Label numbox 
  558.       Alignment       =   2  'Center
  559.       BorderStyle     =   1  'Fixed Single
  560.       Caption         =   "12"
  561.       FontBold        =   -1  'True
  562.       FontItalic      =   0   'False
  563.       FontName        =   "Arial"
  564.       FontSize        =   24
  565.       FontStrikethru  =   0   'False
  566.       FontUnderline   =   0   'False
  567.       Height          =   615
  568.       Index           =   12
  569.       Left            =   1200
  570.       TabIndex        =   11
  571.       Top             =   1080
  572.       Width           =   735
  573.    End
  574.    Begin Label numbox 
  575.       Alignment       =   2  'Center
  576.       BorderStyle     =   1  'Fixed Single
  577.       Caption         =   "11"
  578.       FontBold        =   -1  'True
  579.       FontItalic      =   0   'False
  580.       FontName        =   "Arial"
  581.       FontSize        =   24
  582.       FontStrikethru  =   0   'False
  583.       FontUnderline   =   0   'False
  584.       Height          =   615
  585.       Index           =   11
  586.       Left            =   360
  587.       TabIndex        =   10
  588.       Top             =   1080
  589.       Width           =   735
  590.    End
  591.    Begin Label numbox 
  592.       Alignment       =   2  'Center
  593.       BorderStyle     =   1  'Fixed Single
  594.       Caption         =   "10"
  595.       FontBold        =   -1  'True
  596.       FontItalic      =   0   'False
  597.       FontName        =   "Arial"
  598.       FontSize        =   24
  599.       FontStrikethru  =   0   'False
  600.       FontUnderline   =   0   'False
  601.       Height          =   615
  602.       Index           =   10
  603.       Left            =   7920
  604.       TabIndex        =   9
  605.       Top             =   360
  606.       Width           =   735
  607.    End
  608.    Begin Label numbox 
  609.       Alignment       =   2  'Center
  610.       BorderStyle     =   1  'Fixed Single
  611.       Caption         =   "9"
  612.       FontBold        =   -1  'True
  613.       FontItalic      =   0   'False
  614.       FontName        =   "Arial"
  615.       FontSize        =   24
  616.       FontStrikethru  =   0   'False
  617.       FontUnderline   =   0   'False
  618.       Height          =   615
  619.       Index           =   9
  620.       Left            =   7080
  621.       TabIndex        =   8
  622.       Top             =   360
  623.       Width           =   735
  624.    End
  625.    Begin Label numbox 
  626.       Alignment       =   2  'Center
  627.       BorderStyle     =   1  'Fixed Single
  628.       Caption         =   "8"
  629.       FontBold        =   -1  'True
  630.       FontItalic      =   0   'False
  631.       FontName        =   "Arial"
  632.       FontSize        =   24
  633.       FontStrikethru  =   0   'False
  634.       FontUnderline   =   0   'False
  635.       Height          =   615
  636.       Index           =   8
  637.       Left            =   6240
  638.       TabIndex        =   7
  639.       Top             =   360
  640.       Width           =   735
  641.    End
  642.    Begin Label numbox 
  643.       Alignment       =   2  'Center
  644.       BorderStyle     =   1  'Fixed Single
  645.       Caption         =   "7"
  646.       FontBold        =   -1  'True
  647.       FontItalic      =   0   'False
  648.       FontName        =   "Arial"
  649.       FontSize        =   24
  650.       FontStrikethru  =   0   'False
  651.       FontUnderline   =   0   'False
  652.       Height          =   615
  653.       Index           =   7
  654.       Left            =   5400
  655.       TabIndex        =   6
  656.       Top             =   360
  657.       Width           =   735
  658.    End
  659.    Begin Label numbox 
  660.       Alignment       =   2  'Center
  661.       BorderStyle     =   1  'Fixed Single
  662.       Caption         =   "6"
  663.       FontBold        =   -1  'True
  664.       FontItalic      =   0   'False
  665.       FontName        =   "Arial"
  666.       FontSize        =   24
  667.       FontStrikethru  =   0   'False
  668.       FontUnderline   =   0   'False
  669.       Height          =   615
  670.       Index           =   6
  671.       Left            =   4560
  672.       TabIndex        =   5
  673.       Top             =   360
  674.       Width           =   735
  675.    End
  676.    Begin Label numbox 
  677.       Alignment       =   2  'Center
  678.       BorderStyle     =   1  'Fixed Single
  679.       Caption         =   "5"
  680.       FontBold        =   -1  'True
  681.       FontItalic      =   0   'False
  682.       FontName        =   "Arial"
  683.       FontSize        =   24
  684.       FontStrikethru  =   0   'False
  685.       FontUnderline   =   0   'False
  686.       Height          =   615
  687.       Index           =   5
  688.       Left            =   3720
  689.       TabIndex        =   4
  690.       Top             =   360
  691.       Width           =   735
  692.    End
  693.    Begin Label numbox 
  694.       Alignment       =   2  'Center
  695.       BorderStyle     =   1  'Fixed Single
  696.       Caption         =   "4"
  697.       FontBold        =   -1  'True
  698.       FontItalic      =   0   'False
  699.       FontName        =   "Arial"
  700.       FontSize        =   24
  701.       FontStrikethru  =   0   'False
  702.       FontUnderline   =   0   'False
  703.       Height          =   615
  704.       Index           =   4
  705.       Left            =   2880
  706.       TabIndex        =   3
  707.       Top             =   360
  708.       Width           =   735
  709.    End
  710.    Begin Label numbox 
  711.       Alignment       =   2  'Center
  712.       BorderStyle     =   1  'Fixed Single
  713.       Caption         =   "3"
  714.       FontBold        =   -1  'True
  715.       FontItalic      =   0   'False
  716.       FontName        =   "Arial"
  717.       FontSize        =   24
  718.       FontStrikethru  =   0   'False
  719.       FontUnderline   =   0   'False
  720.       Height          =   615
  721.       Index           =   3
  722.       Left            =   2040
  723.       TabIndex        =   2
  724.       Top             =   360
  725.       Width           =   735
  726.    End
  727.    Begin Label numbox 
  728.       Alignment       =   2  'Center
  729.       BorderStyle     =   1  'Fixed Single
  730.       Caption         =   "2"
  731.       FontBold        =   -1  'True
  732.       FontItalic      =   0   'False
  733.       FontName        =   "Arial"
  734.       FontSize        =   24
  735.       FontStrikethru  =   0   'False
  736.       FontUnderline   =   0   'False
  737.       Height          =   615
  738.       Index           =   2
  739.       Left            =   1200
  740.       TabIndex        =   1
  741.       Top             =   360
  742.       Width           =   735
  743.    End
  744.    Begin Label numbox 
  745.       Alignment       =   2  'Center
  746.       BorderStyle     =   1  'Fixed Single
  747.       Caption         =   "1"
  748.       FontBold        =   -1  'True
  749.       FontItalic      =   0   'False
  750.       FontName        =   "Arial"
  751.       FontSize        =   24
  752.       FontStrikethru  =   0   'False
  753.       FontUnderline   =   0   'False
  754.       Height          =   615
  755.       Index           =   1
  756.       Left            =   360
  757.       TabIndex        =   0
  758.       Top             =   360
  759.       Width           =   735
  760.    End
  761.    Begin Menu game 
  762.       Caption         =   "&Game"
  763.       Begin Menu new 
  764.          Caption         =   "&New"
  765.          Shortcut        =   {F2}
  766.       End
  767.       Begin Menu ex 
  768.          Caption         =   "E&xit"
  769.          Shortcut        =   ^X
  770.       End
  771.       Begin Menu dash 
  772.          Caption         =   "-"
  773.       End
  774.       Begin Menu abt 
  775.          Caption         =   "&About Number Crunch..."
  776.       End
  777.    End
  778.    Begin Menu options 
  779.       Caption         =   "&Options"
  780.       Begin Menu level 
  781.          Caption         =   "&Game Type"
  782.          Begin Menu kids 
  783.             Caption         =   "&Kids' Game"
  784.          End
  785.          Begin Menu norm 
  786.             Caption         =   "&Normal Game"
  787.             Checked         =   -1  'True
  788.          End
  789.       End
  790.       Begin Menu timelimit 
  791.          Caption         =   "&Set Time Limit..."
  792.       End
  793.       Begin Menu bkdcol 
  794.          Caption         =   "&Background Color"
  795.          Begin Menu yellow 
  796.             Caption         =   "&Yellow"
  797.          End
  798.          Begin Menu green 
  799.             Caption         =   "&Green"
  800.          End
  801.          Begin Menu blue 
  802.             Caption         =   "&Blue"
  803.          End
  804.          Begin Menu purple 
  805.             Caption         =   "&Purple"
  806.          End
  807.          Begin Menu bluegray 
  808.             Caption         =   "Blue-gr&ay"
  809.          End
  810.          Begin Menu gray 
  811.             Caption         =   "G&ray"
  812.          End
  813.          Begin Menu white 
  814.             Caption         =   "&White"
  815.             Checked         =   -1  'True
  816.          End
  817.       End
  818.    End
  819.    Begin Menu help 
  820.       Caption         =   "&Help"
  821.    End
  822. Sub abt_Click ()
  823. Load about
  824. about.Show
  825. End Sub
  826. Sub blue_Click ()
  827. yellow.checked = 0
  828. green.checked = 0
  829. blue.checked = -1
  830. purple.checked = 0
  831. bluegray.checked = 0
  832. gray.checked = 0
  833. white.checked = 0
  834. numCrunch.backcolor = &HFFFF00
  835. label2.backcolor = numCrunch.backcolor
  836. timebox.backcolor = numCrunch.backcolor
  837. End Sub
  838. Sub bluegray_Click ()
  839. yellow.checked = 0
  840. green.checked = 0
  841. blue.checked = 0
  842. purple.checked = 0
  843. bluegray.checked = -1
  844. gray.checked = 0
  845. white.checked = 0
  846. numCrunch.backcolor = &H808000
  847. label2.backcolor = numCrunch.backcolor
  848. timebox.backcolor = numCrunch.backcolor
  849. End Sub
  850. Sub Command1_Click ()
  851. timer1.enabled = -1
  852. command1.enabled = 0
  853. End Sub
  854. Sub ex_Click ()
  855. Unload numCrunch
  856. End Sub
  857. Sub Form_Load ()
  858. Randomize
  859. Static t(1 To 20)
  860. amttime = 120
  861. For n = 1 To 20
  862.     Do
  863.         t(n) = Int(20 * Rnd + 1)
  864.         For u = 1 To 20
  865.             If num(u) = t(n) Then u = 456: Exit For
  866.         Next u
  867.         If u = 21 Then Exit Do
  868.     Loop
  869.     num(n) = t(n)
  870. Next n
  871. End Sub
  872. Sub gray_Click ()
  873. yellow.checked = 0
  874. green.checked = 0
  875. blue.checked = 0
  876. purple.checked = 0
  877. bluegray.checked = 0
  878. gray.checked = -1
  879. white.checked = 0
  880. numCrunch.backcolor = &HC0C0C0
  881. label2.backcolor = numCrunch.backcolor
  882. timebox.backcolor = numCrunch.backcolor
  883. End Sub
  884. Sub green_Click ()
  885. yellow.checked = 0
  886. green.checked = -1
  887. blue.checked = 0
  888. purple.checked = 0
  889. bluegray.checked = 0
  890. gray.checked = 0
  891. white.checked = 0
  892. numCrunch.backcolor = &HFF00&
  893. label2.backcolor = numCrunch.backcolor
  894. timebox.backcolor = numCrunch.backcolor
  895. End Sub
  896. Sub help_Click ()
  897. MsgBox "For help on Number Crunch, please use Windows Notepad to open the file NOCRUNCH.TXT.", 64, "Number Crunch"
  898. End Sub
  899. Sub kids_Click ()
  900. l = 1
  901. kids.checked = -1
  902. norm.checked = 0
  903. For o = 1 To 20
  904.     numbox(o).caption = ""
  905. Next o
  906. Static t(1 To 20)
  907. timer1.enabled = 0
  908. command1.enabled = -1
  909. timebox.caption = Str$(amttime)
  910. For w = 1 To 20
  911.     num(w) = 0
  912. Next w
  913. For n = 1 To 20
  914.     Do
  915.         t(n) = Int(20 * Rnd + 1)
  916.         For u = 1 To 20
  917.             If num(u) = t(n) Then u = 456: Exit For
  918.         Next u
  919.         If u = 21 Then Exit Do
  920.     Loop
  921.     num(n) = t(n)
  922. Next n
  923. For x = 1 To 20
  924.     label1(x).visible = -1
  925.     label1(x).caption = ""
  926.     label1(x).dragmode = 0
  927.     numbox(x).backcolor = &HFFFFFF
  928.     numbox(x).forecolor = &H0&
  929. Next x
  930. End Sub
  931. Sub Label1_Click (index As Integer)
  932. If timer1.enabled = 0 Then Beep: Exit Sub
  933. For g = 1 To 20
  934.     If label1(g).caption <> "" Then
  935.         label1(g).caption = ""
  936.         label1(g).dragmode = 0
  937.     End If
  938. Next g
  939. label1(index).caption = Str$(num(index))
  940. label1(index).dragmode = 1
  941. End Sub
  942. Sub new_Click ()
  943. Static t(1 To 20)
  944. timer1.enabled = 0
  945. command1.enabled = -1
  946. timebox.caption = Str$(amttime)
  947. For w = 1 To 20
  948.     num(w) = 0
  949. Next w
  950. If l = 1 Then
  951.     For z = 1 To 20
  952.         numbox(z).caption = ""
  953.     Next z
  954. End If
  955. For n = 1 To 20
  956.     Do
  957.         t(n) = Int(20 * Rnd + 1)
  958.         For u = 1 To 20
  959.             If num(u) = t(n) Then u = 456: Exit For
  960.         Next u
  961.         If u = 21 Then Exit Do
  962.     Loop
  963.     num(n) = t(n)
  964. Next n
  965. For x = 1 To 20
  966.     label1(x).visible = -1
  967.     label1(x).caption = ""
  968.     label1(x).dragmode = 0
  969.     numbox(x).backcolor = &HFFFFFF
  970.     numbox(x).forecolor = &H0&
  971. Next x
  972. End Sub
  973. Sub norm_Click ()
  974. l = 0
  975. norm.checked = -1
  976. kids.checked = 0
  977. For o = 1 To 20
  978.     numbox(o).caption = Str$(o)
  979. Next o
  980. Static t(1 To 20)
  981. timer1.enabled = 0
  982. command1.enabled = -1
  983. timebox.caption = Str$(amttime)
  984. For w = 1 To 20
  985.     num(w) = 0
  986. Next w
  987. For n = 1 To 20
  988.     Do
  989.         t(n) = Int(20 * Rnd + 1)
  990.         For u = 1 To 20
  991.             If num(u) = t(n) Then u = 456: Exit For
  992.         Next u
  993.         If u = 21 Then Exit Do
  994.     Loop
  995.     num(n) = t(n)
  996. Next n
  997. For x = 1 To 20
  998.     label1(x).visible = -1
  999.     label1(x).caption = ""
  1000.     label1(x).dragmode = 0
  1001.     numbox(x).backcolor = &HFFFFFF
  1002.     numbox(x).forecolor = &H0&
  1003. Next x
  1004. End Sub
  1005. Sub numbox_DragDrop (index As Integer, source As Control, x As Single, Y As Single)
  1006. If l = 0 And index > 1 Then
  1007.     If numbox(index - 1).backcolor <> &HFF& Then Beep: source.dragmode = 0: Exit Sub
  1008. End If
  1009. q = source.index
  1010. If num(q) <> index Then
  1011.     Beep: source.dragmode = 0: Exit Sub
  1012.     numbox(index).backcolor = &HFF&
  1013.     numbox(index).forecolor = &HFFFFFF
  1014.     numbox(index).caption = Str$(index)
  1015.     source.visible = 0
  1016.     source.dragmode = 0
  1017.     For u = 1 To 20
  1018.         If numbox(u).backcolor <> &HFF& Then Exit For
  1019.     Next u
  1020.     If u = 21 Then
  1021.         timer1.enabled = 0
  1022.         f = amttime - Val(timebox.caption)
  1023.         message$ = "You won in " + Str$(f) + " seconds!"
  1024.         MsgBox message$, 48, "Number Crunch"
  1025.     End If
  1026. End If
  1027. End Sub
  1028. Sub purple_Click ()
  1029. yellow.checked = 0
  1030. green.checked = 0
  1031. blue.checked = 0
  1032. purple.checked = -1
  1033. bluegray.checked = 0
  1034. gray.checked = 0
  1035. white.checked = 0
  1036. numCrunch.backcolor = &HFF00FF
  1037. label2.backcolor = numCrunch.backcolor
  1038. timebox.backcolor = numCrunch.backcolor
  1039. End Sub
  1040. Sub timelimit_Click ()
  1041. message$ = "Please enter the amount of time you wish to attempt to complete the game in terms of seconds:"
  1042. response$ = InputBox$(message$, "Number Crunch", Str$(amttime))
  1043. If response$ = "" Then response$ = Str$(amttime)
  1044. amttime = Val(response$)
  1045. Static t(1 To 20)
  1046. timer1.enabled = 0
  1047. command1.enabled = -1
  1048. timebox.caption = Str$(amttime)
  1049. For i = 1 To 20
  1050.     If l = 1 Then
  1051.         numbox(i).caption = ""
  1052.     Else
  1053.         numbox(i).caption = Str$(i)
  1054.     End If
  1055. Next i
  1056. For w = 1 To 20
  1057.     num(w) = 0
  1058. Next w
  1059. For n = 1 To 20
  1060.     Do
  1061.         t(n) = Int(20 * Rnd + 1)
  1062.         For u = 1 To 20
  1063.             If num(u) = t(n) Then u = 456: Exit For
  1064.         Next u
  1065.         If u = 21 Then Exit Do
  1066.     Loop
  1067.     num(n) = t(n)
  1068. Next n
  1069. For x = 1 To 20
  1070.     label1(x).visible = -1
  1071.     label1(x).caption = ""
  1072.     label1(x).dragmode = 0
  1073.     numbox(x).backcolor = &HFFFFFF
  1074.     numbox(x).forecolor = &H0&
  1075. Next x
  1076. End Sub
  1077. Sub Timer1_Timer ()
  1078. Y = Val(timebox.caption)
  1079. timebox.caption = Str$(Y - 1)
  1080. If Val(timebox.caption) = 0 Then
  1081.     timer1.enabled = 0
  1082.     For e = 1 To 20
  1083.         label1(e).caption = ""
  1084.         label1(e).dragmode = 0
  1085.     Next e
  1086.     MsgBox "I'm sorry, time has run out. Please play again.", 16, "Number Crunch"
  1087. End If
  1088. End Sub
  1089. Sub white_Click ()
  1090. yellow.checked = 0
  1091. green.checked = 0
  1092. blue.checked = 0
  1093. purple.checked = 0
  1094. bluegray.checked = 0
  1095. gray.checked = 0
  1096. white.checked = -1
  1097. numCrunch.backcolor = &HFFFFFF
  1098. label2.backcolor = numCrunch.backcolor
  1099. timebox.backcolor = numCrunch.backcolor
  1100. End Sub
  1101. Sub yellow_Click ()
  1102. yellow.checked = -1
  1103. green.checked = 0
  1104. blue.checked = 0
  1105. purple.checked = 0
  1106. bluegray.checked = 0
  1107. gray.checked = 0
  1108. white.checked = 0
  1109. numCrunch.backcolor = &HFFFF&
  1110. label2.backcolor = numCrunch.backcolor
  1111. timebox.backcolor = numCrunch.backcolor
  1112. End Sub
  1113.